import { BuffType, AttriType, EquipmentType, OccType } from "core/typeDefine/typeDefine";

export default {
    packageAttributesList: [480001, 480002, 480003, 480004, 480005, 480006, 480007, 480008, 480009, 480010, 480011, 480012],//套装词缀
    packagePropList: [209001, 209002, 209003, 209004, 209005, 209006, 209007, 209008, 209009, 209010, 209011, 209012],//套装碎片
    packageAttributesLvlMax: 30,//套装词缀等级上限
    packageAttributesActive: [2, 3, 5],//激活套装1-3属性所需套装装备数量
    packageLockMax: 5,
    packageAttributesRate: {//套装掉落概率 千分之
        normal: 10,//挂机
        instance: 220,//副本
        maze: 1000,//寻宝活动
    },
    equipmentsStr: {  //强化相关
        strAttri: [1, 1.5, 0],
    },
    destroy: [  //分解获得
        { itemID: 200001, amount: [1, 0.5] }
    ],
    equimentMaxQuality: 5, //装备品质上限
    equipmentQualityOdds: [
        [10000, 4000, 1000, 400, 100, 20, 0, 0, 0],
        [-20, -5, -3, 1, 5, 2, 0, 0, 0],
    ],
    occWearableList: {
        [OccType.Warrior]: {
            [EquipmentType.Weapon]: [1],
            [EquipmentType.SubWeapon]: [1],
            [EquipmentType.Body]: [1],
            [EquipmentType.Head]: [1],
            [EquipmentType.Foot]: [1],
            [EquipmentType.Ring]: [1],
            [EquipmentType.Necklace]: [1],
        },
        [OccType.MainTank]: {
            [EquipmentType.Weapon]: [2],
            [EquipmentType.SubWeapon]: [2],
            [EquipmentType.Body]: [1],
            [EquipmentType.Head]: [1],
            [EquipmentType.Foot]: [1],
            [EquipmentType.Ring]: [1],
            [EquipmentType.Necklace]: [1],
        },
        [OccType.Wizard]: {
            [EquipmentType.Weapon]: [3],
            [EquipmentType.SubWeapon]: [3],
            [EquipmentType.Body]: [3],
            [EquipmentType.Head]: [3],
            [EquipmentType.Foot]: [3],
            [EquipmentType.Ring]: [1],
            [EquipmentType.Necklace]: [1],
        },
        [OccType.Archer]: {
            [EquipmentType.Weapon]: [4],
            [EquipmentType.SubWeapon]: [4],
            [EquipmentType.Body]: [2],
            [EquipmentType.Head]: [2],
            [EquipmentType.Foot]: [2],
            [EquipmentType.Ring]: [1],
            [EquipmentType.Necklace]: [1],
        },
        [OccType.Assassin]: {
            [EquipmentType.Weapon]: [5],
            [EquipmentType.SubWeapon]: [5],
            [EquipmentType.Body]: [2],
            [EquipmentType.Head]: [2],
            [EquipmentType.Foot]: [2],
            [EquipmentType.Ring]: [1],
            [EquipmentType.Necklace]: [1],
        },
        [OccType.Assistant]: {
            [EquipmentType.Weapon]: [6],
            [EquipmentType.SubWeapon]: [6],
            [EquipmentType.Body]: [3],
            [EquipmentType.Head]: [3],
            [EquipmentType.Foot]: [3],
            [EquipmentType.Ring]: [1],
            [EquipmentType.Necklace]: [1],
        },
    },
    equipmentMaxLvl: 1750, //装备最大等级 1000=>1500=>1750
    equipmentForgeLvlUpMax: 20,//装备锻造等级升级上限
    qualityAdd: 10, //装备属性根据品质提升的百分比
    equipmentMainAttriPer: 70, //装备主属性浮动百分比
    equipmentSubAttriPer: 65,  //装备次属性浮动百分比
    equipmentLvlByFloor: [3, 3, 0],
    equipmentListType: [EquipmentType.Weapon, EquipmentType.SubWeapon, EquipmentType.Head, EquipmentType.Body, EquipmentType.Foot, EquipmentType.Necklace,
    EquipmentType.Ring],
    equipmentListStrAttri: {
        [EquipmentType.Weapon]: { attriName: 'attack' },
        [EquipmentType.Body]: { attriName: 'maxHp' },
        [EquipmentType.Head]: { attriName: 'maxHp' },
        [EquipmentType.Foot]: { attriName: 'speed' },
        [EquipmentType.Necklace]: { attriName: 'def' },
        [EquipmentType.SubWeapon]: { attriName: 'attack' },
        [EquipmentType.Ring]: { attriName: 'def' }
    },
    createEquipmentList: {
        [EquipmentType.Weapon]: [205011, 205012, 205013, 205014, 205015, 205016],
        [EquipmentType.SubWeapon]: [205021, 205022, 205023, 205024, 205025, 205026],
        [EquipmentType.Head]: [205031, 205032, 205033],
        [EquipmentType.Body]: [205041, 205042, 205043],
        [EquipmentType.Foot]: [205051, 205052, 205053],
        [EquipmentType.Ring]: [205061],
        [EquipmentType.Necklace]: [205071],
        [EquipmentType.Earring]: [205081],
        [EquipmentType.Wings]: [205091],
        [EquipmentType.Waist]: [205101]
    },

    subAttriInfo: {
        equipmentSubAttriCoe: [1, 0.5, 1], //装备次属性的系数
        randAttriAmountByQality: [  //根据品质获得的随机属性条数
            0, 1, 2, 3, 4, 5, 6, 7, 8, 9
        ],
        spAttriAmountByqQality: [  //根据品质获得的特殊属性条数
            0, 0, 1, 2, 2, 3, 3, 4, 5, 6
        ],
        spAttriList: [AttriType.SpAttri, AttriType.SpAttri, AttriType.SpAttri], //buff状态伤害属性,2buff状态减伤属性,3技能伤害属性,reduceSkillCdList降低技能cd属性,spAttriByPart特殊属性
        randAttriByPart: {
            [EquipmentType.Weapon]: ['maxHp', 'def', 'attack', 'speed'],
            [EquipmentType.SubWeapon]: ['maxHp', 'def', 'attack', 'speed'],
            [EquipmentType.Head]: ['maxHp', 'def', 'attack', 'speed'],
            [EquipmentType.Body]: ['maxHp', 'def', 'attack', 'speed'],
            [EquipmentType.Ring]: ['maxHp', 'def', 'attack', 'speed'],
            [EquipmentType.Necklace]: ['maxHp', 'def', 'attack', 'speed'],
            [EquipmentType.Foot]: ['maxHp', 'def', 'attack', 'speed'],

            [EquipmentType.Earring]: ['maxHp', 'def', 'attack', 'recoverHp'],
            [EquipmentType.Wings]: ['maxHp', 'def', 'attack', 'recoverHp'],
            [EquipmentType.Waist]: ['maxHp', 'def', 'attack', 'recoverHp'],
        },
        reduceSkillCdList: {
            [EquipmentType.Weapon]: [270001, 270003, 270005, 270007, 270009, 270021],
            [EquipmentType.SubWeapon]: [270001, 270003, 270005, 270007, 270009, 270021],
            [EquipmentType.Wings]: [270001, 270003, 270005, 270007, 270009, 270021],

            [EquipmentType.Head]: [270002, 270004, 270006, 270008, 270010, 270020],
            [EquipmentType.Body]: [270002, 270004, 270006, 270008, 270010, 270020],
            [EquipmentType.Foot]: [270002, 270004, 270006, 270008, 270010, 270020],

            [EquipmentType.Ring]: [270022, 270023, 270024, 270025, 270026, 270027],
            [EquipmentType.Necklace]: [270022, 270023, 270024, 270025, 270026, 270027],
            [EquipmentType.Earring]: [270022, 270023, 270024, 270025, 270026, 270027],
        },
        skillHurtPerList: {
            [EquipmentType.Weapon]: [270002, 270004, 270006, 270008, 270010, 270020],
            [EquipmentType.SubWeapon]: [270002, 270004, 270006, 270008, 270010, 270020],
            [EquipmentType.Wings]: [270002, 270004, 270006, 270008, 270010, 270020],

            [EquipmentType.Head]: [270022, 270023, 270024, 270025, 270026, 270027],
            [EquipmentType.Body]: [270022, 270023, 270024, 270025, 270026, 270027],
            [EquipmentType.Foot]: [270022, 270023, 270024, 270025, 270026, 270027],

            [EquipmentType.Ring]: [270001, 270003, 270005, 270007, 270009, 270021],
            [EquipmentType.Necklace]: [270001, 270003, 270005, 270007, 270009, 270021],
            [EquipmentType.Earring]: [270001, 270003, 270005, 270007, 270009, 270021],
        },
        statusHurtList: {
            [EquipmentType.Weapon]: [BuffType.Ice, BuffType.Fire, BuffType.XueRuo],
            [EquipmentType.SubWeapon]: [BuffType.Ice, BuffType.Fire, BuffType.XueRuo],
            [EquipmentType.Wings]: [BuffType.Ice, BuffType.Fire, BuffType.XueRuo],

            [EquipmentType.Head]: [BuffType.XueRuo, BuffType.PoJia, BuffType.ZhiMang],
            [EquipmentType.Body]: [BuffType.XueRuo, BuffType.PoJia, BuffType.ZhiMang],
            [EquipmentType.Foot]: [BuffType.XueRuo, BuffType.PoJia, BuffType.ZhiMang],

            [EquipmentType.Ring]: [BuffType.Ice, BuffType.Fire, BuffType.PoJia, BuffType.ZhiMang],
            [EquipmentType.Necklace]: [BuffType.Ice, BuffType.Fire, BuffType.PoJia, BuffType.ZhiMang],
            [EquipmentType.Earring]: [BuffType.Ice, BuffType.Fire, BuffType.PoJia, BuffType.ZhiMang],
        },
        statusReduceList: {
            [EquipmentType.Weapon]: [BuffType.Ice, BuffType.Fire, BuffType.XueRuo],
            [EquipmentType.SubWeapon]: [BuffType.Ice, BuffType.Fire, BuffType.XueRuo],
            [EquipmentType.Wings]: [BuffType.Ice, BuffType.Fire, BuffType.XueRuo],

            [EquipmentType.Head]: [BuffType.XueRuo, BuffType.PoJia, BuffType.ZhiMang],
            [EquipmentType.Body]: [BuffType.XueRuo, BuffType.PoJia, BuffType.ZhiMang],
            [EquipmentType.Foot]: [BuffType.XueRuo, BuffType.PoJia, BuffType.ZhiMang],

            [EquipmentType.Ring]: [BuffType.Ice, BuffType.Fire, BuffType.PoJia, BuffType.ZhiMang],
            [EquipmentType.Necklace]: [BuffType.Ice, BuffType.Fire, BuffType.PoJia, BuffType.ZhiMang],
            [EquipmentType.Earring]: [BuffType.Ice, BuffType.Fire, BuffType.PoJia, BuffType.ZhiMang],
        },
        spAttriByPart: {
            [EquipmentType.Weapon]: ['critRate', 'critHurtPer', 'skillHurtPer', 'breakDefRate', 'blockRate', 'elitePer'],
            [EquipmentType.SubWeapon]: ['critRate', 'critHurtPer', 'skillHurtPer', 'breakDefRate', 'blockRate', 'elitePer'],
            [EquipmentType.Head]: ['critRate', 'critHurtPer', 'skillHurtPer', 'breakDefRate', 'blockRate', 'elitePer'],
            [EquipmentType.Body]: ['critRate', 'critHurtPer', 'skillHurtPer', 'breakDefRate', 'blockRate', 'elitePer'],
            [EquipmentType.Ring]: ['critRate', 'critHurtPer', 'skillHurtPer', 'breakDefRate', 'blockRate', 'elitePer'],
            [EquipmentType.Necklace]: ['critRate', 'critHurtPer', 'skillHurtPer', 'breakDefRate', 'blockRate', 'elitePer'],
            [EquipmentType.Foot]: ['critRate', 'critHurtPer', 'skillHurtPer', 'breakDefRate', 'blockRate', 'elitePer'],

            [EquipmentType.Earring]: ['hitRate', 'critRate', 'critHurtPer'],
            [EquipmentType.Wings]: ['attackSpeed', 'attackMp', 'scritRate'],
        },
        spAttrisList: {
            breakDefRate: {
                type: AttriType.Attri,
                attriName: "breakDefRate",
                qualityValues: [0.5, 0.5, 0, 0],
                lvlValues: [0, 0.1, 0, 0, 1],
                maxValue: 10,
            },
            blockRate: {
                type: AttriType.Attri,
                attriName: "blockRate",
                qualityValues: [0.5, 0.25, 0, 0, 1],
                lvlValues: [0, 0.1, 0, 0, 1],
                maxValue: 5,
            },
            elitePer: {
                type: AttriType.Attri,
                attriName: "elitePer",
                qualityValues: [0.5, 0.5, 0, 0],
                lvlValues: [0, 0.1, 0, 0, 1],
                maxValue: 10
            },
            critRate: {
                type: AttriType.Attri,
                attriName: "critRate",
                qualityValues: [0.5, 0.5, 0, 0, 1],
                lvlValues: [0, 0.1, 0, 0, 1],
                maxValue: 5,
            },
            critHurtPer: {
                type: AttriType.Attri,
                attriName: "critHurtPer",
                qualityValues: [0.5, 0.5, 0, 0, 1],
                lvlValues: [0, 0.1, 0, 0, 1],
                maxValue: 10
            },
            skillHurtPer: {
                type: AttriType.Attri,
                attriName: "skillHurtPer",
                qualityValues: [0.5, 0.5, 0, 0, 1],
                lvlValues: [0, 0.1, 0, 0, 1],
                maxValue: 10,
            },
        },
        reduceSkillCd: {
            qualityValues: [2, 2, 0, 0],
            lvlValues: [0, 0.1, 0, 0],
            maxValue: 5,
        },
        addSkillHurtPer: {
            qualityValues: [1.5, 1.5, 0, 0],
            lvlValues: [0, 0.1, 0, 0],
            maxValue: 10,
        },
        statusHurtPer: {
            qualityValues: [2, 2, 0, 0],
            lvlValues: [0, 0.1, 0, 0],
            maxValue: 10,
        },
        statusReduceHurtPer: {
            qualityValues: [1, 1, 0, 0],
            lvlValues: [0, 0.1, 0, 0],
            maxValue: 6,
        },
    },
    equipmentPower: {  //装备评分
        maxHp: 1,
        attack: 3,
        def: 2,
        maxMp: 2,
        recoverHp: 3,
        attackSpeed: 6,
        doubleAttack: 6,
        attackMp: 6,

        recoverMp: 6,
        critRate: 6,
        critHurt: 6,
        scritRate: 6,
        scritHurt: 6,

        dodgeRate: 6,
        hitRate: 6,


        con: 6,
        str: 6,
        will: 6,
        spirit: 6,
        agile: 6,

        critHurtPer: 20,
        scritHurtPer: 20,
        antiCritHurtPer: 20,
        skillHurtPer: 20,
        antiSkillHurtPer: 20,

        statusHurtPer: 10,
        statusReduceHurt: 10,
        addSkillHurtPer: 10,
        addSkillLvl: 10,
        decSkillCd: 10,
    },
    equipmentPowerPer: {
        critHurtPer: 1,
        antiCritHurtPer: 1,
        skillHurtPer: 1,
        antiSkillHurtPer: 1,
        pHurtPer: 1,
        antiPHurtPer: 1,
        lHurtPer: 1,
        antiLHurtPer: 1,

        addSkillLvl: 5,
        decSkillCd: 5,
        statusHurtPer: 1,
        statusReduceHurt: 1,
    },

    equipmentEnchantType1: {
        [EquipmentType.Weapon]: ['maxHp', 'def', 'attack'],
        [EquipmentType.SubWeapon]: ['maxHp', 'def', 'attack'],
        [EquipmentType.Head]: ['maxHp', 'def', 'attack'],
        [EquipmentType.Body]: ['maxHp', 'def', 'attack'],
        [EquipmentType.Foot]: ['maxHp', 'def', 'attack'],

        [EquipmentType.Ring]: ['maxHp', 'def', 'attack'],
        [EquipmentType.Necklace]: ['maxHp', 'def', 'attack'],

        // [EquipmentType.Earring]: ['maxHp', 'def', 'attack' ],
        // [EquipmentType.Wings]: ['maxHp', 'def', 'attack' ],
        // [EquipmentType.Waist]: ['maxHp', 'def', 'attack' ],
    },
    equipmentEnchantType2: {
        [EquipmentType.Weapon]: ['critRate', 'breakDefRate', 'blockRate',],
        [EquipmentType.SubWeapon]: ['critRate', 'breakDefRate', 'blockRate',],
        [EquipmentType.Head]: ['antiBreakDefRate', 'antiCritHurtPer', 'antiBlockRate',],
        [EquipmentType.Body]: ['antiBreakDefRate', 'antiCritHurtPer', 'antiBlockRate',],
        [EquipmentType.Foot]: ['antiBreakDefRate', 'antiCritHurtPer', 'antiBlockRate',],
        [EquipmentType.Ring]: ['skillHurtPer', 'critHurtPer', 'elitePer',],
        [EquipmentType.Necklace]: ['skillHurtPer', 'critHurtPer', 'elitePer',],

        // [EquipmentType.Earring]: ['antiCritHurtPer', 'antiSCritHurtPer', 'scritRate'],
        // [EquipmentType.Wings]: ['antiCritHurtPer', 'scritRate', 'antiSCritHurtPer'],
    },

    equipmentEnchantValuesList: {
        attack: [0, 1, 0, 0, 0],
        maxHp: [0, 5, 0, 0, 0],
        def: [0, 1, 0, 0, 0],

        hitRate: [0, 0.1, 0, 0, 0, 1],
        dodgeRate: [0, 0.1, 0, 0, 0, 1],
        critRate: [0, 0.1, 0, 0, 0, 1],
        scritRate: [0, 0.1, 0, 0, 0, 1],
        antiCritRate: [0, 0.1, 0, 0, 0, 1],
        skillReduceCdPer: [0, 0.1, 0, 0, 0, 1],
        breakDefRate: [0, 0.1, 0, 0, 0, 1], //破甲率
        antiBreakDefRate: [0, 0.1, 0, 0, 0, 1], //破甲抵抗率
        blockRate: [0, 0.1, 0, 0, 0, 1], //格挡率
        antiBlockRate: [0, 0.1, 0, 0, 0, 1], //破击率

        attackPer: [0, 0.1, 0, 0, 0],
        maxHpPer: [0, 0.1, 0, 0, 0],
        defPer: [0, 0.1, 0, 0, 0],
        speedPer: [0, 0.1, 0, 0, 0],


        elitePer: [0, 0.1, 0, 0, 0],
        critHurtPer: [0, 0.1, 0, 0, 0, 1],
        scritHurtPer: [0, 0.1, 0, 0, 0, 1],

        antiCritHurtPer: [0, 0.1, 0, 0, 0, 1],
        skillHurtPer: [0, 0.1, 0, 0, 0, 1],
        antiSkillHurtPer: [0, 0.1, 0, 0, 0, 1],
        pHurtPer: [0, 0.1, 0, 0, 0, 1],
        antiPHurtPer: [0, 0.1, 0, 0, 0, 1],
        lHurtPer: [0, 0.1, 0, 0, 0, 1],
        antiLHurtPer: [0, 0.1, 0, 0, 0, 1],



    },
}